package com.hue.netty.day02.five;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

public class ClientInitializer extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel ch) throws Exception {
        ch.pipeline()
                //编码器
                .addLast(new ClientLongToByteHandler())
                //解码器
                .addLast(new ClientByteToLongHandler())
                .addLast(new ClientHandler());
    }
}
